package com.selen.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Selen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "RoomUpdateDTO", description = "房间修改DTO")
public class RoomUpdateDTO implements Serializable {

    /**  主键  */
    @NotNull(message = "主键不能为空")
    @Schema(description = "主键", example = "1")
    private Long id;

    /**  房间名称  */
    @Schema(description = "房间名称", example = "教201")
    private String title;

    /**  房间地址  */
    @Schema(description = "房间地址", example = "教学楼")
    private String address;

    /**  房间描述  */
    @Schema(description = "房间描述", example = "教学楼二楼东侧")
    private String info;

    /**  房间容量  */
    @Min(value = 0, message = "房间容量大于0")
    @Schema(description = "房间容量", example = "30")
    private Integer capacity;

}